﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Site._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2><asp:Label ID="lblTitle" runat="server" /></h2>
    <asp:GridView ID="pnlBanks" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField HeaderText="Id" DataField="id" />
            <asp:ImageField HeaderText="Image" >
            </asp:ImageField>
            <asp:TemplateField HeaderText="Name">
                <ItemTemplate>
                    <a href='Default.aspx?page=account&id=<%# Eval("id") %>'><%# Eval("name") %></a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:GridView ID="pnlAccounts" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='default.aspx?page=transfer&id=<%# Eval("id") %>'><%# Eval("id") %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="iban" HeaderText="Iban" />
        </Columns>
    </asp:GridView>
    <asp:GridView ID="pnlTransfers" runat="server" AllowPaging="true" PageSize="20">
    </asp:GridView>
</asp:Content>
